package com.logistics.team3.po;

// default package

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 *客户信息表
 * Clitent entity. @author MyEclipse Persistence Tools
 */

public class Clitent  implements java.io.Serializable {


    // Fields    

     private String id;
     /**
      *用户地址 
      */
     private Address address;
     /**
      *用户姓名 
      */
     private String name;
     /**
      *用户名 
      */
     private String username;
     /**
      *密码 
      */
     private String password;
     /**
      *身份证号码 
      */
     private String card;
     /**
      *邮箱 
      */
     private String email;
     /**
      *手机号码
      */
     private String phone;
     /**
      *注册时间 
      */
     private Date joinDate;
     /**
      *上次登录时间
      */
     private Date lastTime;
     /**
      *密码错误次数 
      */
     private Short worrytime;
     /**
      *问题1 
      */
     private String question1;
     /**
      *答案1 
      */
     private String answer1;
     /**
      * 状态
      */
     private Integer state;
     private Set orders = new HashSet(0);
     private Set commonAddresses = new HashSet(0);


    // Constructors

    /** default constructor */
    public Clitent() {
    }

    
    /** full constructor */
    public Clitent(Address address, String name, String username, String password, String card, String email, String phone, Date joinDate, Date lastTime, Short worrytime, String question1, String answer1, Set orders, Set commonAddresses) {
        this.address = address;
        this.name = name;
        this.username = username;
        this.password = password;
        this.card = card;
        this.email = email;
        this.phone = phone;
        this.joinDate = joinDate;
        this.lastTime = lastTime;
        this.worrytime = worrytime;
        this.question1 = question1;
        this.answer1 = answer1;
        this.orders = orders;
        this.commonAddresses = commonAddresses;
    }

   
    // Property accessors

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }

    public Address getAddress() {
        return this.address;
    }
    
    public void setAddress(Address address) {
        this.address = address;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return this.username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }

    public String getCard() {
        return this.card;
    }
    
    public void setCard(String card) {
        this.card = card;
    }

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getJoinDate() {
        return this.joinDate;
    }
    
    public void setJoinDate(Date joinDate) {
        this.joinDate = joinDate;
    }

    public Date getLastTime() {
        return this.lastTime;
    }
    
    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public Short getWorrytime() {
        return this.worrytime;
    }
    
    public void setWorrytime(Short worrytime) {
        this.worrytime = worrytime;
    }

    public String getQuestion1() {
        return this.question1;
    }
    
    public void setQuestion1(String question1) {
        this.question1 = question1;
    }

    public String getAnswer1() {
        return this.answer1;
    }
    
    public void setAnswer1(String answer1) {
        this.answer1 = answer1;
    }

    public Set getOrders() {
        return this.orders;
    }
    
    public void setOrders(Set orders) {
        this.orders = orders;
    }

    public Set getCommonAddresses() {
        return this.commonAddresses;
    }
    
    public void setCommonAddresses(Set commonAddresses) {
        this.commonAddresses = commonAddresses;
    }

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}
    
}